<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<meta http-equiv='content-type' content='text/html;charset=utf-8' />
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/home_public.css' />
</head>
<body>
	<div id='all'>
		<div id='header'>
	<div id='header_top'>
		LYOLZJCMS
	</div>
	<div id='header_bottom'>
		<ul>
			<li class="menu"><a href='__APP__/Index/index'>首页</a></li>
			<?php if(is_array($menu)): $i = 0; $__LIST__ = $menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="menu"><a href="<?php echo U("Search/{$vo['alias']}");?>" target="_blank"><?php echo ($vo["title"]); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
		</ul>
	</div>
</div>
			<div id='main'>
				<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<meta http-equiv='content-type' content='text/html;charset=utf-8' />
<style>
#main_left{
	width:650px;
	float:left;
}
#content_img{
	width:640px;
	border:5px solid #EEE;
}
.content{
	width:650px;
	height:240px;
	margin-top:10px;
}
.content_text_left{
	width:320px;
	float:left;
	border:1px solid #EEE;
}
.content_text_right{
	float:right;
	width:320px;
	border:1px solid #EEE;
}
.content_text_top{
	background-color:#40AA53;
	font-size:14px;
	font-weight:bold;
	height:22px;
	line-height:22px;
	text-indent:12px;
	border-radius:4px;
	color:#FFFFFF;
}
.content_text_top a{
	color:#FFF;
}
.content_text_top div{
	float:right;
	width:80px;
	text-align:right;
}
.content_text{
	width:320px;
	height:215px;
}
.content_text ul li{
	list-style-type:none;
	height:30px;
	line-height:30px;
	text-indent:10px;
}
</style>
<script>
window.onload=function(){
	var img=document.getElementById('content_img_float');
	var image=['spring.jpg','summer.jpg','autumn.jpg','winter.jpg'];
	var length=image.length;
	var i=0;
	function imgfloat(){
		if(i<length){
			img.src='__PUBLIC__/images/'+image[i];
			i++;
			if(i==length){
				i=0;
			}
			setTimeout(imgfloat,1500);
		}
	}
		
	imgfloat();
}
</script>
</head>
<body>
	<div id='main_left'>
		<div id='content_img'>
			<img id='content_img_float'>
		</div>

		<div class='content'>
		
			<div class='content_text_left'>
				<div class='content_text_top'>互联网<div><a href="<?php echo U('Search/internet');?>">更多>></a></div></div>
				<div class='content_text'>
					<ul>
						<?php if(is_array($internet)): $i = 0; $__LIST__ = $internet;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><img src='__PUBLIC__/images/arrow.png' />&nbsp;<a href='<?php echo U("Article/index","id={$vo['id']}");?>' target="_blank" title="<?php echo ($vo["title"]); ?>"><?php echo (mysubstr($vo["title"],0,22)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
			</div>
			
			<div class='content_text_right'>
				<div class='content_text_top'>体育<div><a href="<?php echo U('Search/sport');?>">更多>></a></div></div>
				<div class='content_text'>
					<ul>
						<?php if(is_array($sport)): $i = 0; $__LIST__ = $sport;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><img src='__PUBLIC__/images/arrow.png' />&nbsp;<a href='<?php echo U("Article/index","id={$vo['id']}");?>' target="_blank" title="<?php echo ($vo["title"]); ?>"><?php echo (mysubstr($vo["title"],0,22)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
			</div>

		</div>
		<div class='content'>
			
			<div class='content_text_left'>
				<div class='content_text_top'>娱乐<div><a href="<?php echo U('Search/entertainment');?>">更多>></a></div></div>
				<div class='content_text'>
					<ul>
						<?php if(is_array($entertainment)): $i = 0; $__LIST__ = $entertainment;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><img src='__PUBLIC__/images/arrow.png' />&nbsp;<a href='<?php echo U("Article/index","id={$vo['id']}");?>' target="_blank" title="<?php echo ($vo["title"]); ?>"><?php echo (mysubstr($vo["title"],0,22)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
			</div>
			
			<div class='content_text_right'>
				<div class='content_text_top'>新闻<div><a href="<?php echo U('Search/news');?>">更多>></a></div></div>
				<div class='content_text'>
					<ul>
						<?php if(is_array($news)): $i = 0; $__LIST__ = $news;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><img src='__PUBLIC__/images/arrow.png' />&nbsp;<a href='<?php echo U("Article/index","id={$vo['id']}");?>' target="_blank" title="<?php echo ($vo["title"]); ?>"><?php echo (mysubstr($vo["title"],0,22)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
				<div id='main_right'>
	<div id='main_right_search'>
		<form action="<?php echo U('Search/search');?>" method='post'>
			<input type='text' name='search' />
			<input type='submit' value='搜索'>
		</form>
	</div>
	<div id='main_right_hot'>
		<div class='main_right'>热门文章</div>
		<div id='top10'>
			<ul>
				<?php if(is_array($hots_article)): $i = 0; $__LIST__ = $hots_article;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><img src='__PUBLIC__/images/num_<?php echo ($key+1); ?>.gif'>&nbsp;<a href='<?php echo U("Article/index","id={$vo['id']}");?>' target="_blank" title="<?php echo ($vo["title"]); ?>"><?php echo (mysubstr($vo["title"],0,20)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
	</div>
	<div id='main_right_news'>
		<div class='main_right'>最新文章</div>
		<div id='news10'>
			<ul>
				<?php if(is_array($news_article)): $i = 0; $__LIST__ = $news_article;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><img src='__PUBLIC__/images/num_<?php echo ($key+1); ?>.gif'>&nbsp;<a href='<?php echo U("Article/index","id={$vo['id']}");?>' target="_blank" title="<?php echo ($vo["title"]); ?>"><?php echo (mysubstr($vo["title"],0,20)); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
	</div>
	<div id='main_right_label'>
		<div class='main_right'>标签</div>
		<div>
			<?php if(is_array($tag)): $i = 0; $__LIST__ = $tag;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><a href="__APP__/Search/search/keywords/<?php echo (urlencode($vo)); ?>" style="color:#<?php echo mt_rand(111,999);?>;font-size:<?php echo mt_rand(12,24);?>px"><?php echo ($vo); ?> </a><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
	</div>
</div>
			</div>
		<div id='clearfloat'></div>
<div id='footer'>
	<div id='footer_top'>
		<div id='footer_top_left'>友情链接：</div>
		<div id='footer_top_right'>
			<?php if(is_array($links)): $i = 0; $__LIST__ = $links;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>&nbsp;<a href='<?php echo ($vo["url"]); ?>' target="_blank" title="<?php echo ($vo["info"]); ?>"><?php echo ($vo["title"]); ?></a>&nbsp;<?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
	</div>
	<div id='footer_bottom'>
		<div id='footer_bottom_top'>
			<?php if(is_array($singlepage)): $i = 0; $__LIST__ = $singlepage;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>&nbsp;<a href="<?php echo U("Singlepage/index","alias={$vo['alias']}");?>" target="_blank"><?php echo ($vo["title"]); ?></a>&nbsp;<?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
		<div id='footer_bottom_bottom'>
			Copyright &copy;<?php echo (C("APP_YEAR")); ?> <?php echo (C("APP_NAME")); ?> All rights reserved <?php echo (C("APP_ICP")); ?>
		</div>
	</div>
	<div id='footer_bottom'>
	</div>
</div>
	</div>
</body>
</html>